package cn.nzp.core.openapi.server.si;

import org.junit.After;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * 测试基类
 * @author xiejindun
 * @date 2015-04-06
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath*:/nzp-core-openapi-server.xml" })
//@TransactionConfiguration(defaultRollback = false)
//@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class BaseTestTemplate {
    
	private long endTime;

    private long startTime;

    @Before
    public void setUp() throws Exception {
    	startTime = System.currentTimeMillis();
        System.out.println("1.测试开始");
    }

    @After
    public void tearDown() throws Exception {
        endTime = System.currentTimeMillis();
        System.out.println("2.测试结束 consumed ms:" + (endTime - startTime));
    }
}
